package com.lt.interactive.sms.handler;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "cloopen.sms")
public class ConstantProperties implements InitializingBean {


    private String accountSId;
    private String accountToken;
    private String appId;

    public static String ACCOUNT_SID;
    public static String ACCOUNT_TOKEN;
    public static String APP_ID;


    @Override
    public void afterPropertiesSet() throws Exception {
        ACCOUNT_SID=accountSId;
        ACCOUNT_TOKEN=accountToken;
        APP_ID=appId;
    }
}
